<% form_for(@zhishi) do |f| %>
<%= f.error_messages :header_message => "请修改后再尝试保存！", :message => "你提交的内容存在下面一些问题" %>
<div class="field">
    <%= f.label :title, '标题' %>
    <br/>
    <%= f.text_field :title %>
</div>
<div class="field">
    <%= f.label :tags, '标签' %>
    <br/>
    <%= f.text_field :tags %>
</div>
<div class="field">
    <%= f.label :content,'内容' %>
    <br/>
    <%= f.text_area :content %>
</div>
<p>
    <%= f.submit "保存" %>
    <%= link_to '取消', :controller => "home", :action => "index" %>
</p>
<% end %>